package com.ruoyi.slope.electricity.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 电量信息对象 slope_electricity_data
 * 
 * @author ruoyi
 * @date 2025-06-15
 */
public class SlopeElectricityData extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 逻辑主键ID */
    private Long id;

    /** 设备SN */
    @Excel(name = "设备SN")
    private String deviceSn;

    /** 电池组电量 */
    @Excel(name = "电池组电量")
    private BigDecimal batteryPackCapacity;

    /** 电池组电压 */
    @Excel(name = "电池组电压")
    private BigDecimal batteryPackVoltage;

    /** 充电状态 */
    @Excel(name = "充电状态")
    private Long chargingStatus;

    /** 设备地址 */
    @Excel(name = "设备地址")
    private String deviceAddress;

    /** 光伏板电压 */
    @Excel(name = "光伏板电压")
    private BigDecimal photovoltaicVoltage;

    /** 充电电压 */
    @Excel(name = "充电电压")
    private BigDecimal chargingVoltage;

    /** 保护电压 */
    @Excel(name = "保护电压")
    private BigDecimal protectionVoltage;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setDeviceSn(String deviceSn) 
    {
        this.deviceSn = deviceSn;
    }

    public String getDeviceSn() 
    {
        return deviceSn;
    }

    public void setBatteryPackCapacity(BigDecimal batteryPackCapacity) 
    {
        this.batteryPackCapacity = batteryPackCapacity;
    }

    public BigDecimal getBatteryPackCapacity() 
    {
        return batteryPackCapacity;
    }

    public void setBatteryPackVoltage(BigDecimal batteryPackVoltage) 
    {
        this.batteryPackVoltage = batteryPackVoltage;
    }

    public BigDecimal getBatteryPackVoltage() 
    {
        return batteryPackVoltage;
    }

    public void setChargingStatus(Long chargingStatus) 
    {
        this.chargingStatus = chargingStatus;
    }

    public Long getChargingStatus() 
    {
        return chargingStatus;
    }

    public void setDeviceAddress(String deviceAddress) 
    {
        this.deviceAddress = deviceAddress;
    }

    public String getDeviceAddress() 
    {
        return deviceAddress;
    }

    public void setPhotovoltaicVoltage(BigDecimal photovoltaicVoltage) 
    {
        this.photovoltaicVoltage = photovoltaicVoltage;
    }

    public BigDecimal getPhotovoltaicVoltage() 
    {
        return photovoltaicVoltage;
    }

    public void setChargingVoltage(BigDecimal chargingVoltage) 
    {
        this.chargingVoltage = chargingVoltage;
    }

    public BigDecimal getChargingVoltage() 
    {
        return chargingVoltage;
    }

    public void setProtectionVoltage(BigDecimal protectionVoltage) 
    {
        this.protectionVoltage = protectionVoltage;
    }

    public BigDecimal getProtectionVoltage() 
    {
        return protectionVoltage;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deviceSn", getDeviceSn())
            .append("batteryPackCapacity", getBatteryPackCapacity())
            .append("batteryPackVoltage", getBatteryPackVoltage())
            .append("chargingStatus", getChargingStatus())
            .append("deviceAddress", getDeviceAddress())
            .append("updateTime", getUpdateTime())
            .append("photovoltaicVoltage", getPhotovoltaicVoltage())
            .append("chargingVoltage", getChargingVoltage())
            .append("protectionVoltage", getProtectionVoltage())
            .toString();
    }
}
